<template>
  <div class="alet_container">
    <section class="tip_text_container">
      <div class="tip_icon">
        <span></span>
        <span></span>
      </div>
      <!--<p class="tip_text">{{alertText}}</p>-->
      <p class="tip_text">{{textTT}}</p>
      <div class="progressContainer">
        <!--<div class="progress" :style="{width:progress+'%'}">-->

        <!--</div>-->
      </div>
    </section>
  </div>
</template>

<script>
  export default {
    name: 'ProcessSJ',
    props: ['alertText','textTT'],
    data () {
      return {
        msg: 'Welcome to Your Vue.js App',
        progress:30
      }
    },
    mounted () {
      for (var i=0;i<100;i++ ){
        if(i!==98) {
          this.progress = i
        } else {
          if(this.connectEnd) {
            this.progress = i
          }
        }
      }
    },
    methods: {
      closeTip () {
        this.$emit('closeTip')
      }
    }
  }
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
  @keyframes tipMove{
    0%   { transform: scale(1) }
    35%  { transform: scale(.8) }
    70%  { transform: scale(1.1) }
    100% { transform: scale(1) }
  }
  .alet_container{
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 200;
    background-color: rgba(0,0,0,0.3);
  }
  .tip_text_container{
    position: absolute;
    width: 90%;
    bottom: 30px;
    left: 5%;
    border: 1px;
    animation: tipMove .4s ;
    border-radius: 0.7rem;
    display: flex;
    padding-top: 20px;
    padding-bottom: 20px;
    background-color: rgba(255,255,255,0.8);
    justify-content: center;
    align-items: center;
    flex-direction: column;
  }
  .tip_text{
    color: black;
    font-size: 12px;
    font-weight: bold;
    line-height: 3;
  }
  @media screen and (min-width: 320px) {
    .cancel{
      padding: 5px 70px;
      float: left;
      border-radius: 1rem;
      box-shadow: 0px 0px 0px 0.3px #888888;
      color:rgb(1,101,204);
      font-weight: bold;
    }
    .confrim{
      padding: 5px 70px;
      float: left;
      box-shadow: 0px 0px 0px 0.3px #888888;
      border-radius: 1rem;
      margin-left: 10px;
      color:rgb(1,101,204);
      font-weight: bold;
    }
  }
  @media screen and (max-width: 320px) {
    .cancel{
      padding: 5px 40px;
      float: left;
      border-radius: 1rem;
      box-shadow: 0px 0px 0px 0.3px #888888;
      color:rgb(1,101,204);
      font-weight: bold;
    }
    .confrim{
      padding: 5px 40px;
      float: left;
      box-shadow: 0px 0px 0px 0.3px #888888;
      border-radius: 1rem;
      margin-left: 10px;
      color:rgb(1,101,204);
      font-weight: bold;
    }
  }
  div.progressContainer{
    width: 90%;
    height: 0.2rem;
    border: 1px solid #0064B4;
    border-radius: 0.2rem ;
    background-color:#e6e6e6;
    background-color: #ddd;
  }
  div.progress{
    display:block;
    height: 0.2rem;
    background: #0064B4;
    height: 0.2rem;
  }
  /*b{*/
  /*color:#fff;*/
  /*font-weight: 100;*/
  /*font-size: 12px;*/
  /*position:absolute;*/
  /*left:40%;*/
  /*}*/
  /*progress {*/
  /*display: inline-block;*/
  /*width: 90%;*/
  /*height: 0.2rem;*/
  /*border: 1px solid #0064B4;*/
  /*border-radius: 0.2rem ;*/
  /*background-color:#e6e6e6;*/
  /*color: #0064B4; !*IE10*!*/
  /*}*/
  /*!*ie6-ie9*!*/
  /*progress ie {*/
  /*display:block;*/
  /*height: 100%;*/
  /*background: #0064B4;*/
  /*}*/

  /*progress::-moz-progress-bar { background: #0064B4; }*/
  /*progress::-webkit-progress-bar { background: #e6e6e6; }*/
  /*progress::-webkit-progress-value  { background: #0064B4; }*/

</style>
